package parse;

import java.util.*;

import RecordManagement.*;
import SystemManagement.*;
import Const.Constant;
import ExecuteEngine.*;

public class Insert extends SQL{
	private TableName table_name;
	private Value_list v;
	private Tuple t;
	private RM_FileHandle fileHandle;
	
	public Insert(String name, Value_list v){
		this.table_name = new TableName(name);
		this.v = v;
		this.t = new Tuple();
	}
	
	public TableName GetTableName(){
		return this.table_name;
	}
	
	public Value_list GetValues(){
		return this.v;
	}
	
	public void insertTuple(SM_Manager sm){
		try{
			sm.InsertTuple(v, table_name);
		}
		catch(Error e){
			throw e;
		}
	}
}